﻿@using MC.RideEvent.Mvc.Models.ViewModel
@{
    var member = Session["CurrentMember"] as MemberViewModel;
    
    if(member != null)
    {  
        <div class="userlogged">
            <span>Bonjour, @member.FirstName @member.Name</span>
            [@Html.ActionLink("Profil", "Index", "Member"), @Html.ActionLink("Se deconnecter", "LogOut", "Member")]
        </div>
    } else {
        Html.BeginForm("LogIn", "Member", FormMethod.Post, new { id = "login-form" });
            @Html.TextBox("emaillogin", "", new { placeholder = "email@exemple.com" })
            @Html.Password("pwdlogin", "", new { placeholder = "mot de passe" })
            <input type="submit" value="ok"/>
        Html.EndForm();
    }
}
